"""
    功能介绍：从csv文件里获取有效数据，并写入到新的文件中
"""
import time
from tqdm import tqdm
# 数据来源
file_import = r"/Users/azemat/Desktop/1/data.csv"
# 导出的结果文件
file_export = r"/Users/azemat/Desktop/1/expert.csv"
start = time.perf_counter()
content = open(file_import)
for line in tqdm(content.readlines(), desc="hello"):
    with open(file_export, "a") as f:
        if "伊犁" in line:
            f.write(line)
stop = time.perf_counter()
print(f"导出完毕,筛选一共花了{stop - start}秒")
